<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta
        http-equiv="Content-Type"
        content="text/html; charset=UTF-8"
    >
    <title>个人简介</title>
    <style>
        body {
            font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: #333;
            margin: 0;
            padding: 40px 20px;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .info-card {
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            max-width: 1000px;
            width: 100%;
            display: flex;
            gap: 40px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .info-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }

        .profile-image {
            flex: 0 0 350px;
        }

        .profile-image img {
            width: 100%;
            height: 450px;
            object-fit: cover;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .profile-image img:hover {
            transform: scale(1.02);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .profile-info {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        h2 {
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 2.2em;
            font-weight: 600;
            position: relative;
            padding-bottom: 15px;
        }

        h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #3498db, #2ecc71);
            border-radius: 2px;
        }

        .info-item {
            margin-bottom: 20px;
            padding: 15px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.5);
            transition: all 0.3s ease;
            border: 1px solid rgba(52, 152, 219, 0.1);
        }

        .info-item:hover {
            transform: translateX(5px);
            border-color: rgba(52, 152, 219, 0.3);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .info-label {
            color: #3498db;
            font-weight: bold;
            margin-right: 15px;
            font-size: 1.1em;
        }

        .info-value {
            color: #2c3e50;
            font-size: 1.1em;
        }

        .nav-links {
            margin-top: auto;
            display: flex;
            gap: 15px;
        }

        .nav-button {
            display: inline-block;
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            padding: 12px 25px;
            text-decoration: none;
            border-radius: 25px;
            transition: all 0.3s ease;
            font-weight: 500;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
        }

        .nav-button:hover {
            background: linear-gradient(135deg, #2980b9, #2c3e50);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
        }

        @media (max-width: 900px) {
            .info-card {
                flex-direction: column;
                align-items: center;
            }

            .profile-image {
                flex: 0 0 auto;
                width: 100%;
                max-width: 350px;
            }

            .nav-links {
                justify-content: center;
            }
        }

        @media (max-width: 600px) {
            body {
                padding: 20px 10px;
            }

            .info-card {
                padding: 20px;
            }

            h2 {
                font-size: 1.8em;
                text-align: center;
            }

            h2::after {
                left: 50%;
                transform: translateX(-50%);
            }

            .nav-links {
                flex-direction: column;
                align-items: center;
            }

            .nav-button {
                width: 100%;
                text-align: center;
            }
        }

        .time-display {
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 1.2em;
            background: linear-gradient(135deg, #3498db, #2ecc71);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 32px;
        }
    </style>

</head>

<body>
    <div
        class="time-display"
        id="timeDisplay"
    ></div>

    <div class="info-card">
        <div class="profile-image">
            <img
                src=""
                alt="个人头像"
            >
        </div>
        <div class="profile-info">
            <h2>个人简介</h2>
            <div class="info-item">
                <span class="info-label">姓名</span>
                <span class="info-value">#{name}</span>
            </div>
            <div class="info-item">
                <span class="info-label">年龄</span>
                <span class="info-value">#{age}</span>
            </div>
            <div class="info-item">
                <span class="info-label">学校</span>
                <span class="info-value">#{school}</span>
            </div>
            <div class="info-item">
                <span class="info-label">专业</span>
                <span class="info-value">#{major}</span>
            </div>
            <div class="nav-links">
                <a
                    href="/"
                    class="nav-button"
                >返回首页</a>
                <a
                    href="/home"
                    class="nav-button"
                >详细信息</a>
            </div>
        </div>
    </div>

    <script>
        function updateTime() {
            const now = new Date();
            const hours = String(now.getHours()).padStart(2, '0');
            const minutes = String(now.getMinutes()).padStart(2, '0');
            const seconds = String(now.getSeconds()).padStart(2, '0');
            const timeString = `${hours}:${minutes}:${seconds}`;
            document.getElementById('timeDisplay').textContent = timeString;
        }

        setInterval(updateTime, 1000); // Update time every second
        updateTime(); // Initial call to set the time immediately
    </script>
</body>

</html>